package eventos;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JDialog;

public class EventoCancelar extends MouseAdapter {
	
	private JDialog ventana;
	
	public EventoCancelar(JDialog ventana)
	{
		super();
		this.ventana = ventana;		
	}
	
	public void mouseClicked(MouseEvent e)
	{
		this.ventana.setVisible(false);
		this.ventana = null;		
	}	
}
